package two;

import java.util.Scanner;

public class test9718 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int a = solve2(num);
        System.out.println(a);
    }
   public static int solve2(int n)
    {
        int num=0;
        if(n==1) return 1;
        for(int i=2; i<=n; i++)
            if(n%i == 0) num+=solve2(n/i);
        return num;
    }
}
